package com.adminserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 普通用户
 * @TableName user
 */
@TableName(value ="user")
@Data
public class UserEntity implements Serializable {
    /**
     * 唯一用户标识
     */
    @TableId(value = "user_openid")
    private String openid;

    /**
     * 昵称
     */
    @TableField(value = "user_nickname")
    private String nickname;

    /**
     * 头像
     */
    @TableField(value = "user_headimgurl")
    private String headimgurl;

    /**
     * 注册时间
     */
    @TableField(value = "user_register_time")
    private Date registerTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
